import request from '@/request/request.js';


/**
 * @description  扫码列表
 */
export function getScanSettingList(){

    return request({
        url: '/scan-setting',
        headers: {
            isToken: true
        },
        method: 'get'
    })
}


/**
 * @description  扫码列表
 */
export function addScanSetting(data){

    return request({
        url: '/scan-setting',
        headers: {
            isToken: true
        },
        method: 'post',
        data: data
    })
}

/**
 * @description  扫码列表
 */
export function deleteScanSetting(code){

    return request({
        url: '/scan-setting/' + code,
        headers: {
            isToken: true
        },
        method: 'delete'
    })
}